package cn.t12.quartzspringbootdemo.service;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

import java.util.concurrent.TimeUnit;

@Service
public class RemindService {
    private static Logger logger = LoggerFactory.getLogger(RemindService.class);
    public void remind(){
        logger.info("提醒任务...");
        try {
            TimeUnit.SECONDS.sleep(2);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}

